package com.jeesite.modules.fl.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.service.CrudService;
import com.jeesite.modules.fl.dao.ClinicSettingDao;
import com.jeesite.modules.fl.entity.ClinicSetting;

@Service
@Transactional(readOnly=true)
public class ClinicSettingService extends CrudService<ClinicSettingDao,ClinicSetting>{
	
	/**
	 * 获取单条数据
	 * @param clinicSetting
	 * @return
	 */
	@Override
	public ClinicSetting get(ClinicSetting clinicSetting) {
		ClinicSetting entity = super.get(clinicSetting);
		return entity;
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param clinicSetting
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(ClinicSetting clinicSetting) {
		super.save(clinicSetting);
	}
	
	/**
	 * 更新状态
	 * @param clinicSetting
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(ClinicSetting clinicSetting) {
		super.updateStatus(clinicSetting);
	}
	
	/**
	 * 删除数据
	 * @param clinicSetting
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(ClinicSetting clinicSetting) {
		super.delete(clinicSetting);
	}
	
}
